package com.bistu.xiong.factory.test_data;

import com.bistu.xiong.factory.bean.DataWithTag;
import com.bistu.xiong.factory.bean.UserPost;
import com.bistu.xiong.factory.model.db.User;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by XiongXiaoJun on 2017/12/21.
 */

public class CommunityData {
    public static List<DataWithTag> getCommunityData(){
        List<DataWithTag> mDataList = new ArrayList<>();
        UserPost userPost;
        User user = new User();

        user.setName("xxj");
        user.setPortrait("http://img15.3lian.com/2015/f1/140/d/50.jpg");
        user.setSex(User.SEX_MAN);
        mDataList.add(new DataWithTag(user,DataWithTag.USER_INFO));

        userPost = new UserPost();
        userPost.setContent("第一主题");
        userPost.setDiscussNum(23);
        userPost.setLikeNum(3);
        mDataList.add(new DataWithTag(userPost,DataWithTag.TOPIC_FOR_TODAY));

        userPost = new UserPost();
        user.setName("金金");
        user.setSex(User.SEX_WOMAN);
        userPost.setUser(user);
        userPost.setContent("第一条评论");
        List<String> messagePics = new ArrayList<>();
        messagePics.add("http://img15.3lian.com/2015/f1/140/d/49.jpg");
        messagePics.add("http://img15.3lian.com/2015/f1/140/d/50.jpg");
        messagePics.add("http://img15.3lian.com/2015/f1/140/d/51.jpg");
        messagePics.add("http://img15.3lian.com/2015/f1/140/d/52.jpg");
        messagePics.add("http://img15.3lian.com/2015/f1/140/d/53.jpg");
        messagePics.add("http://img15.3lian.com/2015/f1/140/d/54.jpg");
        userPost.setMessagePics(messagePics);
        userPost.setDiscussNum(23);
        userPost.setLikeNum(3);
        mDataList.add(new DataWithTag(userPost,DataWithTag.USER_POST));

        return mDataList;
    }
}
